db.py integrated (user classes and method of db.py)