Switched to a dynamic handeling of namespaces. Stores all prefixes in db