Localize psycopg2 import