trying to figure out best way to update db