[TIMOB-12941] Fixed Database returning _undefined_ if results were 0
Merge pull request #137 from pec1985/timob-12941

[TIMOB-12941] Fixed Database returning _undefined_ if results were 0