Hotel database without using if statements