AnimalDb bugfixes.

several bugfixes to importer and locations plugin
refactoring of some commonservice functions