Renamed db.js to base.js