I have this website that uses the same queries over and over. I thought of creating small functions, passing the connection and other arguments to it, and reusing the functions.