db adding, deleting and get queries