Added javadocs to database interface