little changes, in DB we store IP like long type