Finished(?) updateDB()
Needs testing