Cleaned up some variables names and function layouts. Seems like permissions are repetitive need to make cleaner.
Fixed typo in the query content method.