added sql storage for scripts