Complete accelerometer database code