fixes; search; ranged search; moved to postgresql