Fix typo in sqlfs.js and add _getUsage function.
Fix bugs in _getUsage and writeFile in sqlfs.js