added getReadings to db controller