added insert function to db.js. added test route at /test