added funcitonality for reseting database
add reseting of lot_num in database