[perf] minor optimization to mapping sqlite enum to DataType