SQL cleanup
Prime list type param removed