basic functionality using in memory db