starting db interaction