improve mysqlrestore, listing memory table, and fixed string function bug