Working with dates and times - How to create a connection pool with psycopg2