database updating when sending samples