cleanup sql presentation