Refactored the database model

Moved all the user maintenance methods out of TuneModel and into the new UserModel (and UserModelCasbahImpl)