$db = object
values[userid] = array[index]