Reading sensor ids from Database