some small bugs are fixed in db.py
orm.py is created, testing main function is not included yet