save database file / add javadoc