fix sql access to table `rooms`