psycopg2 dbname param fix