SQL: Converting an IPV4 or IPV6 To An Integer And Back Again