make the code runnable with BC 1.51
use the prepared statement repeatedly