change database to memory databse