part way through database hookup