example code to create a object oriented framework using php to connect to mysql database and run stored procedures