Cleaned comment controller using dynamic method in query creation.