smalll change to db.js