add a file database.py to manage database use sqlalchemy