mainpage, dbmodel, rafactoring