remove the deprecated SetParameters() function
#13 catching mysql exception