Check for database driver before attempting connection