before change class executeQuery to a mehod