Added get_calls_from function to logdb