Great howto on SQL backdooring, WordPress & PHBB3 Examples here:
http://www.blackhatacademy.org/security101/SQL_Backdoors
worth the read