Edited the viewAdaptor functions.

Edited the controller, model, and database functionalities to include
functions required by the view