Added DB adapter class