A simple wrapper over psycopg2 with support for common SQL functions