Automate blockexplorer, fix mysql out of range errors