[db] Add postgres support

 - use psycopg2
 - see #451