fixed #7 database memory issue for large searchgeoms