Clean up the way databases are managed.