save data to database works now