Added LogAction class and corresponding QueryBuilder