action query now working with securerandom as the primary key