makes refactoring on the class ReaderMysql and others