Uses command instead of executeDbCommand