revert sql for booking items