Added attachment name
Fixed calling SQL function
Added sample attachment download (not working)
clean