Created db class and users class