added the functionality for connecting to mysql database using php