Update database automatically