Add javadocs for database.

3 jobs for !1571 with 2226-error-handling-mailbox-uploads in 9 minutes and 53 seconds (queued for 57 seconds)
latest merge request