Performance enhancements

Reduced the time for multiple inserts into MySQL