setup database class