added database reset and recreate method