optimize SQL plugin common case and add all records at once