mysql insertions are now done in bulk