[Bug 880793] De-coupled user model access from the database logic

ref: https://bugzilla.mozilla.org/show_bug.cgi?id=880793