add hex_encode
store ip in hex to db