Added in psycopg call for reset