Added abtsract dbal factory and profiling