Added a database cleaning function to the cannon.sh