Refactor project
refactor and errors solutions
psycopg2