'Get Single DocType as dict.
:param doctype: DocType of the single object whose value is requested
Example:
# Get coulmn and value of the single doctype Accounts Settings
account_settings = frappe.db.get_singles_dict("Accounts Settings")'

def get_singles_dict(self, doctype):

    return frappe._dict(self.sql(u'select    field,    value    from\n DCTB  DCTB  DCTB tabSingles    where    doctype=%s', doctype))
