fix cannot initial database when run test at first time / new machine.