Updated getParam to allow it to throw execptions for SQL errors