fixes context bug in server.js destroyDatabaseConnection