Removed object references
Better query logging
Fixed bug with handling functions in select