Update Database class

Check database driver, when not available thow exeption.