Postgresql Select Database In Sql Script