adding database.js