Update db classes for use with namespaces + update widgets for namespaces