Fix create table problem.
Merge pull request #374 from LipuFei/fix-db-refactory

Fix DB refactory problem.