Maps user model to database etc