Buildfix and inputstages

Buildfix for MySQL stage. Input stages committed.