I created some code to connect to a mysql DB. everything works but I have created the same code several times in different forms. I would like to create a function or a sub