Cleanup sql definition and utils

These patches removes unused matters.
- Methods in SQLUtils.
- ColumnDef::ItemId.