Major overhaul to the way database code objects are handled