request proper type from DBI instead of casting
remove unused imports
Merge pull request #919 from metamx/fix-payload-casting

request proper type from DBI instead of casting