Add check for driver based on dsn

Added a check for driver. This change supports any PDO driver as the $database var is parsed in as the PDO DSN.