MYSQL interface and class