Postgresql Command Line Select From Drop