fixing db,fixed invalid config value,removed event