Added socumentation to database.go.