1. If you want to change values directly in database it is strongly NOT recommended, You can destroy your whole database. Besides, this will work only for some time, because Agent will send new log with actual IP addresses, and override your change.
2. IP addresses are resolved by Agent. Server only shows, what Agent sent him. Agent gets this information by API in operating system, that will list all addresses of client machine.