Removed local data files and refactored db.js