better ordering of results on db status check