Add support for psycopg installation

New feature, please review