user classes and db