Fix DB script
PLAT-6673 - Upgrade to Joda-Beans v1.1
PLAT-6673 - Add JSON Joda-Beans support
PLAT-6674 - Fix generation of testing outputs

Use temp.dir