Implemented remaining methods

Finished up the database access methods, included some additional
tests, plus minor changes.