Little progress in connection

Little progress in connetion of inmemory db, entities changed