added ipaddr field to database structure