Merge pull request #5 from boudewijn-tribler/master

Upload activity from database file.
Merge pull request #6 from boudewijn-tribler/master

Typo: peer tuple has lan_address and wan_address.
Explicit type conversions.

Converts possibly floating point numbers from the database into
integers.