change the database type to mem