improve runtime efficiency
avoid duplicate inserting to database