remove database.js in both places where it occurs
update users controller to disallow duplicate username entries in db; incorporate environment-specific configuration file; update package.json to include additional dependencies