get actions from database + format created time (x sec, x min,  x hours,, x days)