Improving the booking functions, changes in the database