def METHOD_NAME(self, package_name, replace_current_db=True):
    self.config_pr_tests(package_name)
    self.increment_package_pr(package_name)
    pr_1 = self.get_pr_version(package_name)
    exported_db_path = os.path.join(self.builddir, 'export.inc')
    export_result = runCmd("bitbake-prserv-tool export %s" % exported_db_path, ignore_status=True)
    self.assertEqual(export_result.status, 0, msg="PR Service database export failed: %s" % export_result.output)
    self.assertTrue(os.path.exists(exported_db_path))
    if replace_current_db:
        current_db_path = os.path.join(get_bb_var('PERSISTENT_DIR'), 'prserv.sqlite3')
        self.assertTrue(os.path.exists(current_db_path), msg="Path to current PR Service database is invalid: %s" % current_db_path)
        os.remove(current_db_path)
    import_result = runCmd("bitbake-prserv-tool import %s" % exported_db_path, ignore_status=True)
    os.remove(exported_db_path)
    self.assertEqual(import_result.status, 0, msg="PR Service database import failed: %s" % import_result.output)
    self.increment_package_pr(package_name)
    pr_2 = self.get_pr_version(package_name)
    self.assertTrue(pr_2 - pr_1 == 1, "New PR %s did not increment as expected (from %s), difference should be 1" % (pr_2, pr_1))