db interaction controller