Database init from Gradle.

More portable db init script.

Works on snap-ci