Fix DB refactory problem.

Fix create table problem.