Add database hookup, switched to ssjs