fixed verification sql