Update shim to load on demand and only access openDatabase if we are actually planning on using the sql shim.