set up memory db