Directly check the database for banned IPs, fixes #252