[NUCRDBMS-822] Update weird activity of storing String as INTEGER;
change contrib code to use Long.valueOf