>> So, my code will delete any rooms in the 'rooms available' table for the current session id
It sounds like you are making something very simple into something very complex.
Why not just do a lookup on all the rooms, adding a filter to filter out rooms that are not available?
cheers
Bruce