intelligent database modification