update basic framework, fix database and some necessary files