Added memory database and initial snapshot db tests