Sending data back to frontend after db update