changed endpoints in db.js to accept additional user data at the /db/prefs endpoint