added ip checking of active bans and tempbans.
TODO: rewrite queries to allow different table namse