DB Maint Scripts

External shell script to help maintain the cockatrice database tables.
This should be done in a single transaction to avoid a row being written between calls.