added database shutdown step