testing with entity interaction data model with database and memory. database looks good but memory is buggy