conversion object from bd to model object