Added support for reusing an old database.