22.02.2014, 13:00
Most likely due to the fact that you're executing concurrent queries (DELETE vs the SELECT in the LoadFactions function) resulting in a race condition. Create a callback for the DELETE query and execute the reset procedure and the LoadFactions in there. This way you'll be sure that the query has been completed.