Implemented company search in sqlite backend
Fixed memory leaks in mock backend