Added code to record pauses into local android database.