Mysql connection implementation