added function to split piped primary keys into an array