fixed bugs for initialize db and admin pages.

fixed bugs for building initialize project.