Restructured db query; added parsing for {} column values; wordpress async functions