make age search postgres compatible, add spec