basic user model and db adapter