add up and down sql commands