Eng 6265 add format currency func

Add a SQL function, FORMAT_CURRENCY. Its function is return a string in xx,xxx,xxx.xx format given a number. 
Remove commented out code prior to merge with master.