An automation script for use with pgBadger