AttributeError: type object 'MariaDB' has no attribute 'get_query'

App Versions

{
	"erpnext": "14.8.0",
	"frappe": "14.16.0",
	"hrms": "1.0.0",
	"payments": "0.0.1"
}

Route

Form/Company/GRO****************

Trackeback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 69, in application
    import frappe.website.path_resolver  # all the page types and resolver
  File "apps/frappe/frappe/api.py", line 54, in handle
    frappe.local.form_dict.cmd = doctype
  File "apps/frappe/frappe/handler.py", line 45, in handle
    data = None
  File "apps/frappe/frappe/handler.py", line 83, in execute_cmd
    is_whitelisted(method)
  File "apps/frappe/frappe/__init__.py", line 1587, in call
    elif raise_not_found:
  File "apps/frappe/frappe/utils/goal.py", line 104, in get_monthly_goal_graph_data
    month_to_value_dict = get_monthly_results(
  File "apps/frappe/frappe/utils/goal.py", line 27, in get_monthly_results
    frappe.qb.get_query(
AttributeError: type object 'MariaDB' has no attribute 'get_query'

Request Data

{
	"type": "GET",
	"args": {
		"doctype": "Company",
		"docname": "GROTECH LANDSCAPE DEVELOPERS PRIVATE LIMITED",
		"title": "Sales",
		"goal_value_field": "monthly_sales_target",
		"goal_total_field": "total_monthly_sales",
		"goal_history_field": "sales_monthly_history",
		"goal_doctype": "Sales Invoice",
		"goal_doctype_link": "company",
		"goal_field": "base_grand_total",
		"date_field": "posting_date",
		"filters": "{\"docstatus\":1,\"is_opening\":[\"!=\",\"Yes\"]}",
		"aggregation": "sum"
	},
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.utils.goal.get_monthly_goal_graph_data"
}

Response Data

{
	"exception": "AttributeError: type object 'MariaDB' has no attribute 'get_query'"
}

@hafiz4saqib

I installed erp in virtualbox via ova. and when i try to update like bench update i get errors, also when i try to use the erp, it gives me this mariadb error.

Please help thank you