[feature] fix database onCreate method