adding db from json file. Still all done from the server.js file