Fix FileTools.write
Fix Global.onStart
Set version when a db file is uploaded