Possible fix for postgres ERROR: Prepared statement already exists