Refactored MySql to use context and added repository and data classes.