query for postgreSQL now added for testing.