Bugfixing - search with no results & too big array resulting in db crash