moved database declaration, created blank db.js file to port our database methods to