Convert float('inf') to "Infinity" on DB insertion.
Convert float('inf') to "Infinity" on DB insertion.

Fixes #5055.

bartscheers/tkp,mkuiack/tkp,transientskp/tkp,transientskp/tkp,mkuiack/tkp,bartscheers/tkp