Using mysql database to rebuild the project.