PostgreSQL friendly date on lastseen

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>