according to sqlite docs [https://docs.python.org/2/library/sqlite3.html] db.commit is automatically called