fixed, crash in DbHelper, and a sensor bug in location