prepare insert statements before executing them