Using a better design to parse json && Code refactoring.
Fix database create crash bug.