It would be ideal if we could re-use the logic in Db_Mapper here, I don't know if that's possible though.