done with primary sql processing