Added config and actually executed queries