changed executeQuery to executeUpdate

Because only selects can be done with query