Worked on the unicode error. Also added explicit commit to bulk insert.