added automatic db update on manual file update