SqliteTableModel: Return from setData() if value hasn't changed

Don't do any changes to the database if the value hasn't actually
changed. This avoids settings the dirty flag when there is no need to.