Fixed broken update queries on SQLite and SQLite3