Created db connector class