Create revertsql