ResultSet rs = stmt.executeQuery(...)
should be replaced with
int results = stmt.executeUpdate(...)
executeQuery
is used whenever you are executing a query (select) but executeUpdate
is used whenever you are executing something that will change the DB (insert, update, delete).