connecting to the mysql database