Added documentation, changed/added database methods to reflect change in database schema