add database for animal and tests, fix small problems