added database automation