Random dates for recent activities on db:populate

Also improved the dates a bit in general in this task and fixed a possible
error during execution.