Created separate class for PDO DB adapter