Commiting changes to database deals SQLite