Making getBinMetadata always return a single result object, rather than an array.  Removing cast to boolean for bin.active in sqlite applyBinDefaults
Removing commented code in applyBinDefaults