Removed the connection.close() calls to the DB.