temporary commit to pull changes in the repo
update and debug db.py. added some fields and constraints