bye bye old api
Fix database content error
Massive code overhaul to support traits and namespaces