made databaseupdate a thread
.