Refactoring of memory package:
-added javadoc for DatabaseHandler
-simple changes in DatabaseAdapter