fix type massive, add sql insert
cosmetic fix