Restructured database scripts for release 1.1.4.
Grunt release now copies files in /tools/scripts/<pkg.version> to the release zip file.
Fixed a bug where some codes weren't set correctly