Added function which take function's call info (per specified interval of time) from db