added second constructor to databases, javadocs