Running queries on anyone else’s website (websites you are a member of) is a HUGE no no. That is how SQL injection attacks happen (inserting malicious SQL code that drops tables), and how entire database structures get compromised. So you should abandon this premise entirely.
Not to mention–its illegal. Most people call it hacking/cracking. -__-