Renamed middleware.js to database.js