Added support for --setup flag to reset database