Adds relations between images, reviews and gemstones... also creates a method that returns json object for angular