make objects move to data_base.py and encapsulate the database-related behavior