Refactor save_to_db function using psycopg2, separate logic from Django
ORM