Fix a bug in the db_get_int() routine that was causing the default value
to be ignored - resulting in very slow clones for systems without a
configuration database.