main db class added