Added reset database functionality.