Updated store proceedure to use collections