Added read log API, refactored log class to use JOINs for user's names