split database.py to dbitem.py and dbman.py
remove redundant database.py
database construction done