updated the conn statement to have general paramters