close webhook db connection