Fix requirejs loading + add SQL string to popover

Change-Id: I7bcd5d4ca659af262d5c366f593886a71a14bee1