Use internal database.reopen command to reopen database

"touch catalog.json" workaround is removed.