encapsulate the setup of the DB