setting up db class