added psycopg2 adapter (optional), fixed to_postgresql
wip