Added queries using active record