DB abstraction logic updated and adding custom logger