Fixed the bug where autocompletions worked only once per db object, by caching the results of ajax call