data is saved in the sql database