Hacky but working parallel db writes.