Add IPv6 compatibility for the database

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