add db and quick corrections