finished SQL db, accelerometer