global: methods for db session manipulation
- Adds useful functions to properly create and delete objects without using bulk operations. (addresses #2419)
Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>