Add last seen info to the database

Adds last seen info to the database under the contact table.

Fixes #612