centralized DB actions into a DB object