Fixed small regression on DatabaseQuery->toString