Implemented repository pattern to retrieve MySQL data.