Fix init db issue