Created more JavaDoc and equals methods for Database