DB Search bug fix #4299

Signed-off-by: Sampath Liyanage <plbsam@gmail.com>

bug fix : 4299