updated database mempory adapter for testing