Search DB range checks

I thing this one gonna work