Python and PostgreSQL updates