fixed the models and database migrations
Added database loading to the confirmation method of index controller