Function to get the user activity logs from the database.
The ID of the user whose activity logs are to be fetched
Function to get the user activity logs from the database.