Added the getUps function

Comments in code explain the steps but basically this function gets the number of Ups based on the image ID passed to it during the function call. I have commented out what I presume was the attempt to do this before. I have included the databaseFunctions.php file which includes the functions Conn and QueryDatabase which are needed for the getUps function.