[Users] SQL query to generate CDR out of ACC logs