Partially implemented logic for saving rooms to database.