[sql] Move number, string & column detection into function
[sql] Start refactoring function highlight