added possibility ot save or not inside database