created db class file