change the structure of the project
make the new structure run
add some connect db function