Added support for loading a vis spec from db