updateDatabase prototype