got dispatch actually working for modifying values
changed docs a bit, made functions in db for getting values for references