Update ignore file to cover IntelliJ IDEA files and plugin.xml.
Fixed broken tests.
Deprecated use of dbFactory in factory.