Clean up the database