Clean up database. Add overwritten changes.