Clean up the databases