Fixed existing database issue