add readme and clean up db.js