Postgres Command To Use Database Query