added reset database (hard) functionality.