Attempt to fix duplicate sql insert