added funcitonality for reseting database