remove adodb reference and initialise attachment repo to tmpdir if not set