added executeUpdate function