Merge pull request #13 from pshen/master

Add explicit cast to text in the query that produces database-related metrics for the idle in transaction duration, fix by Chenjun Shen.