updated oo code in this file and link to pointer for mySQL connection