Modify Database and Cursor