tweaks on serialize through db