Refactored db driver abstract class