Added code for connecting to MYSQL database.