implemented ensuring insitu-sensor in DB