Execute db command