automatic db udpate