.value on Message enum
keep db session in local scope

#222