saving data to database (parandus)