Add run command.
Fixed post handler to work with loaded queries.