Removed readPreference from server.js and made db.js only source of setting readPreferemces