Update database working