Adding result output to db class