Changes to booking component to talk to DB, error fixes in test class.