base database interaction