Update db model: log timestamp from int to long