implemented results db entity mapping