In-Memory database in JAVA