Update database automaticly