reverting 5.0 sql