New method in SQL connection which will return the category number