persists room name to database and removes it from session