database model user and logs