Does JDBC start counting from 1 instead of 0? This should fix it...