Do not expose internal ip representation in class Database.

- All public methods accept and return only CIDR notation.
- Remove 'id' column; address/bits is unqique in this universe anyway.
- Use PDO's bindParam() method.
- Remove calculations from functions.php, or move them to class Database.