when processing #hoodmaps db queue backup the queue before flushing it so we can reverse it in case worker fails due to DB locks for ex #hoodmaps (thx @ronaldl93)
replace direct SQLite INSERTs of drawings via AJAX on #hoodmaps with saving to a text file buffer in /data/hoodmaps.db.queue.txt which we then pull with a cron job @hourly to avoid DB locked problems when too many people write at same time
add try {} catch(PDOException $e) around #hoodmaps insert tag and insert draw data to catch UNIQUE CONSTRAINT race condition instead of fatally erroring
replace hoodmaps REPLACE INTO with INSERT and a check before if the data with {uid} already exists because REPLACE INTO is slow and times out on SQLite in giant dbs #hoodmaps