Some refactoring in ExtendedMySQLAbstraction

Change-Id: I04abb519f2a51888af74a352ea1c8476e3a68b23
Merge "Some refactoring in ExtendedMySQLAbstraction"