Fixed up build.gradles and added test
Allow server to use different database files, and update tests for that