add mysql connection, add inscrition and connection function