remove unecessary initialization
refactor build command to relation
refactor initialization of relation child to parent
refactor each on sensor_relation
refactor each_batch on relation
refactor user_relation and create a spec for it
refactor each method on groups relation
refactor each & each_batch on sensor_data_relation