Forgot to free the memory in database.js