Now generates up and down sql commands