Postgresql Command Line Select Database Query