Comprehensive fix for players losing data from SQL database drops

I can assure you that I have tested this with both flatfile and SQL and that it appears to fully work on both.