Changed the database bootstrapping code.