(Adding new DB support) Moving the write_infodb_entry() functions from basebuildproc.pm into a new dbutil.pm file, since we need to use these from basebuilder.pm and classify.pm too.