Cleanup numeric dpid

We were storing dpid as a string in the database even though it is a hexadecimal number. Changed it to an integer like it should be.