Fixing database call for local results, #89