Update SqliteHelper.java

http://stackoverflow.com/questions/20075560/undo-button-in-android-drawing-app
Might be some use for the undo button and might fix your problems.