Implemented database accessor and mutator methods. Other minor changes