ticket:3 fix storing IP/host into db