Postgres Get Date From Timestamp Python