simplified global ODB store name from window.parameters.ODB to ODB
fixed several small bugs