Updated functions to the new datajoint rules
updated functions to Datajoint 2.0 structure