[COOK-2074] Check full database name for equality rather than substring