Store the client's IP in the database.