added new example with in-memory database