change memory database to mysql