add db interaction