Test of psycopg2 for inserting data (synchronously)