called db class