Created database class, as well as javadoc