More portable DB init.
Improve Gradle build.
Gradle tasks for db init.