getting mysql connection