DRY database configuration and create test database automatically
Merge pull request #972 from AndreyChernyh/mysql-changes

DRY database configuration and create test database automatically