Driving motors for bed