Added sort ID to preserve tableView order in SQLite