Working on updateDB function