Fixed a copy-and-paste error.
Fixed clone_database bug.