less strict postgres distance query tool