Add IPv6 compatibility for the database

The database doesn't currently support IPv6.

That means that it's currently impossible to post over any IPv6 connection.

This fix will allow to store v6 addresses on the database, solving that problem.