added postgres query module
added psql function versions