prepare has rows sql by application itself