Casting all newly created motech ids to ints. Small changes to driver