Fixed some bugs and created backup DB