Merge db.js into features.js