Add option for logging IP addresses

Storing IP address required minor change (addition of new ip_address
field) to table used for storing data. Config option schema_version,
constant SCHEMA_VERSION and method updateDatabaseSchema() were added
specifically for this purpose (keeping database schema up to date.)