You're program should be able to book rooms (according to the instructions). I don't think you are able to book a room without writing to the database file.
The strategy you use is your own choice. I decided to use a cache (and write everything back to file when server is closed). Other ranchers used your 2nd option (and there's nothing wrong with that approach). Don't forget to argument your decision in your choices.txt