[postgresql] PostgreSQL JOIN data from 3 tables