refactor code
change something
fixed some bugs
modified db manager