SERVER-8420 add a tailcheck to detect cursor deadness
Added logging preceding assertion in database.cpp for exceeded quotas