add database.js to link files