Checking for database presence