Refactorizing code and adding mysql adapter