moved db connection into user-db.js, simplfied constructor and set defaults.